// 修改数据
import * as types from './mutations-types';

let type = 'apiData'
// let type = 'mockData'
const mutations = {
    // 设备绑定的模板
    [types.SET_DEV_TEMPLATE_INFO](state, data) {
        state.devTemplateInfo = data;
    },

    // 候诊患者
    [types.SET_WAITING_PATIENT_INFO](state, data) {
        state.waitingPatientInfo[type] = data
    },

    // 候诊患者全量
    [types.SET_WAITING_PATIENT_ALL_INFO](state, data) {
        state.waitingPatientAllInfo[type] = data
    },

    // 过号患者
    [types.SET_PASS_PATIENT_INFO](state, data) {
        state.passPatientInfo[type] = data
    },

    // 候诊患者全量数据
    [types.SET_WAIT_PATIENT_ALL_INFO](state, data) {
        state.waitPatientAllListInfo[type] = data
    },

    // 全量医患信息
    [types.SET_ROOM_DOCTOR_INFO](state, data) {
        state.roomDoctorInfo[type] = data
    },

    [types.SET_ROOM_DOCTOR_STATES_INFO](state, data) {
        state.roomDoctorInfo.states = [...data];
    },

    // 对应医生的患者信息信息
    [types.SET_ROOM_PATIENT_INFO](state, data) {
        state.roomDoctorInfo[type].treatingPatient = (data.treatingPatient) || []
        state.roomDoctorInfo[type].waitingPatientList = (data.waitingPatientList) || []
    },
    // 科室信息-诊室
    [types.SET_ROOM_DEPT_INFO](state, data) {
        state.roomDeptInfo[type] = data
    },
    // 科室信息-窗口
    [types.SET_WINDOW_DEPT_INFO](state, data) {
        state.windowDeptInfo[type] = data
    },

    // 报到机患者信息
    [types.SET_REPORT_PATIENT_INFO](state, data) {
        state.reportPatientInfo[type] = data
    },

    // 报到机步骤
    [types.SET_REPORT_STEP_INFO](state, data) {
        state.reportStep = data
    },

     // 报到机  scene-report-head 组件的状态
     [types.SET_SCENE_REPORT_HEAD_INFO](state, data) {
        state.sceneReportHead = data
    },

    // 报到机-报到类型业务
    [types.SET_REPORT_PICK_INFO](state, data) {
        console.log('取号')
        console.log(state.reportPickInfo)
        state.reportPickInfo[type] = data
    },

     // 药品价格公示
    [types.SET_DRUG_PRICE_INFO](state, data) {
        state.drugPriceListInfo[type] = data
    },

    //窗口屏患者信息
    [types.SET_WINDOW_PATIENT_INFO](state, data) {
        state.windowPatient[type] = data
    },
    //正在呼叫患者信息
    [types.SET_CALL_PATIENT_INFO](state, data) {
        state.callPatientInfo[type] = data
    },

    //看板患者数据
    [types.SET_BOARD_PATIENT_INFO](state, data) {
        state.boardPatientInfo[type] = data
    },

     //候诊-抽血业务
    [types.SET_WAITING_PATIENT_BUSINESS_INFO](state, data) {
        state.waitingPatientBusiness[type] = data
    },

    // 医生排班墙信息--21
    [types.SET_SCHEDULING_DOCTOR_INFO](state, data) {
        state.schedulingDoctorInfo[type] = data
    },

    // 医生排班墙信息--溧阳
    [types.SET_SCHEDULING_DOCTOR_INFO2](state, data) {
        state.schedulingDoctorInfo2[type] = data
    },



    //信息发布-医生排班
    [types.SET_DOCTOR_SCHEDULING_INFO](state, data) {
        state.DoctorSchedulingInfo[type] = data
    },

    //信息发布-手术患者
    [types.SET_PUBLIC_OPERATION_PATIENT_INFO](state, data) {
        state.operationPatientListInfo[type] = data
    },

    // 信息发布-号源
    [types.SET_PUBLIC_NUMBER_SOURCE_INFO](state, data) {
        state.publishNumberSourceListInfo[type] = data
    },

    // 信息发布-价查项
    [types.SET_PUBLIC_CHRECK_LIST_INFO](state, data) {
        state.publishCheckListInfo[type] = data
    },

    // 信息发布--诊室医生
    [types.SET_PUBLIC_ROOM_DOCTOR_INFO](state, data) {
        state.publishRoomDoctorInfo[type] = data
    },
    // 信息发布--药房
    [types.SET_PUBLIC_DRUGSTORE_INFO](state, data) {
        state.publishDrugstorePatientListInfo[type] = data
    },
    // 队列列表信息
    [types.SET_WAIT_QUEUE_LIST_INFO](state, data) {
        state.waitingQueueListInfo[type] = data
    },

    [types.SET_PUBLIC_GENERAL_LIST_INFO](state, data) {
        state.publishGeneralListInfo[type] = data
    },

    [types.SET_WINDOW_DYNAMICS_INFO](state, data) {
        state.windowDynamicsInfo[type] = data
    },
    [types.SET_WAIT_DEPTS_PATIENTS_INFO](state, data) {
        state.waitingDeptsPatientsInfo[type] = data
    },
    [types.SET_SCHEDULING_DOCTOR3096_INFO](state, data) {
        state.schedulingDoctor3096Info[type] = data
    }
    
};

export default mutations;
